package com.example.behaviour.repository;

import com.example.behaviour.pojos.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface CommentRepository extends MongoRepository<Comment,String> {

    List<Comment> findByUserId(String userId);

    List<Comment> findByArticleId(String articleId);

    Comment getCommentById(String id);

    List<Comment> getCommentByUserId(String userId);

    List<Comment> getCommentByNickname(String name);

    Comment getCommentByParentId(String parentId);

//    Comment getCommentByParentId(String parentId);

}
